package com.ccp.learning.annonation;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Map;
import java.util.function.Function;

@Getter
@AllArgsConstructor
public enum FieldHandlerEnum {
    DEFAULT_HANDLER("默认handler", map -> map.keySet().stream().findFirst().get());
    private final String name;
    private final Function<Map<String, Object>, String> handler;
}
